package org.goyo.main.domain.dao.system.impl;

import java.util.List;

import org.goyo.common.exception.DBException;
import org.goyo.main.domain.dao.BaseDAO;
import org.goyo.main.domain.dao.system.ISysUserRoleDao;
import org.goyo.main.domain.entity.system.SysUserRole;
import org.springframework.stereotype.Repository;
@Repository
public class SysUserRoleDaoImpl extends BaseDAO implements ISysUserRoleDao {

	@Override
	public List<SysUserRole> findByUserId(String userId) throws DBException{
		String hql = "from SysUserRole where userId = ?";
		return this.findObjects(hql, null, new Object[]{userId});
	}

}
